<div class="widget am-cf">
    <div class="widget-body  am-fr">
            <!-- form start -->
            <form class="am-form tpl-form-line-form" data-am-validator id="formDoSubmitDialog">
                <input type="hidden" Name="Id" id="Id" value="{{.m.Id}}">
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">配置类型：</label>
                    <div class="am-u-sm-9">
                        <select name="Typeid" id="Typeid" data-am-selected>
                        	{{range $k,$v := .parent}}
                            	<option value="{{$k}}">{{$v}}</option>
                            {{end}}
                        </select>
                    </div>
                </div>
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">配置名称：</label>
                    <div class="am-u-sm-9">
                        <input type="text" name="OptionName" placeholder="填写配置名称" value="{{.m.OptionName}}" required>
                    </div>
                </div>
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">配置键值：</label>
                    <div class="am-u-sm-9">
                        <input type="text" name="OptionKey" placeholder="填写配置键值" value="{{.m.OptionKey}}">
                    </div>
                </div>
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">配置选项：</label>
                    <div class="am-u-sm-9">
                         <textarea name="OptionContent" style="height:150px;" placeholder="没有值则不填写，格式：键值$显示名称">{{.m.OptionContent}}</textarea>
                        <p class="am-form-help">配置选择一行一个，键值|显示名称</p>
                    </div>
                </div>
                 <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label">使用状态：</label>
                      <div class="am-u-sm-9">
                        <select name="Status" id="Status" data-am-selected>
                            <option value="1">正常</option>
                            <option value="0">禁用</option>
                        </select>
                      </div>
                  </div>
                <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label"></label>
                      <div class="am-u-sm-9">
                      	<button class="am-btn am-btn-secondary" type="submit">确认提交</button>
                        <button class="am-btn am-btn-default" type="reset">重置</button>
                      </div>
                </div>
            </form>
        </div>
</div>